package cn.sytton.taffe.file.entity;

import cn.sytton.taffe.framework.base.entity.BaseUpdatedEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * 文件表entity sys_file
 *
 * @author skyrock
 */
@Schema(description = "文件组")
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_file_group")
public class FileGroupEntity extends BaseUpdatedEntity {

    @Schema(description = "文件分组ID")
    private String fileGroupId; //文件分组ID

    @Schema(description = "文件ID")
    private String fileId; //文件ID

    //-----以下是关联属性-----

    @Schema(description = "文件列表")
    @TableField(exist = false)
    private List<FileEntity> files = new ArrayList<>(); //文件列表
}
